package com.twu.biblioteca.customer;


import com.twu.biblioteca.library.LibraryNumber;

public class CustomersFactory {

    public static Customers createCustomers() {
        LibraryNumber libraryNumber = new LibraryNumber(111,1111);

        Customer customer1 = new Customer("name1", "email@address.com", "123456");
        customer1.setLibraryNumber(libraryNumber.getLibraryNumber());
        libraryNumber.increaseLibraryNumber();
        customer1.setPassword("password");

        Customer customer2 = new Customer("name2", "email@address.com", "123456");
        customer2.setLibraryNumber(libraryNumber.getLibraryNumber());
        libraryNumber.increaseLibraryNumber();
        customer2.setPassword("password");

        Customers customers = new Customers();
        customers.addCustomer(customer1);
        customers.addCustomer(customer2);

        return customers;
    }
}
